from urllib.parse import urlparse, parse_qs

def get_url_params(url):
    # 解析 URL
    parsed_url = urlparse(url)

    # 获取查询参数并转换为字典
    params_dict = parse_qs(parsed_url.query)

    # 将值转换为字符串（去掉列表）
    params_dict = {k: v[0] for k, v in params_dict.items()}

    return params_dict

def get_substring_between(text, start, end):
    start_index = text.find(start)
    end_index = text.find(end, start_index + len(start))

    if start_index != -1 and end_index != -1:
        return text[start_index + len(start):end_index]
    else:
        return None
